package com.ruoyi.project.system.leave.domain;

import com.ruoyi.project.system.course.domain.Course;
import com.ruoyi.project.system.dept.domain.Dept;
import com.ruoyi.project.system.user.domain.User;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 学生请假表 sys_leave
 * 
 * @author Waynnn
 * @date 2019-04-07
 */
public class Leave extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 请假id */
	private Long leaveId;
	/** 课程Id */
	private Long courseId;
	/** 学生id */
	private Long studentId;

	private Long deptId;

	/** 审批人id */
	private Long approverId;

	private Dept studentClass;

	private Course course;

	private User student;

	private User approver;
	/** 请假时间 */
	private Date leaveTime;
	/** 请假理由 */
	private String reason;
	/** 审核状态 */
	private String approvalStatus;
	/** 删除标志（0代表存在 2代表删除） */
	private String delFlag;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;


	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public Dept getStudentClass() {
		return studentClass;
	}

	public void setStudentClass(Dept studentClass) {
		this.studentClass = studentClass;
	}

	public Course getCourse() {
		return course;
	}

	public User getApprover() {
		return approver;
	}

	public User getStudent() {
		return student;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public void setApprover(User approver) {
		this.approver = approver;
	}

	public void setStudent(User student) {
		this.student = student;
	}

	public void setLeaveId(Long leaveId)
	{
		this.leaveId = leaveId;
	}

	public Long getLeaveId()
	{
		return leaveId;
	}
	public void setCourseId(Long courseId)
	{
		this.courseId = courseId;
	}

	public Long getCourseId()
	{
		return courseId;
	}
	public void setStudentId(Long studentId)
	{
		this.studentId = studentId;
	}

	public Long getStudentId()
	{
		return studentId;
	}
	public void setApproverId(Long approverId)
	{
		this.approverId = approverId;
	}

	public Long getApproverId()
	{
		return approverId;
	}
	public void setLeaveTime(Date leaveTime) 
	{
		this.leaveTime = leaveTime;
	}

	public Date getLeaveTime() 
	{
		return leaveTime;
	}
	public void setReason(String reason) 
	{
		this.reason = reason;
	}

	public String getReason() 
	{
		return reason;
	}
	public void setApprovalStatus(String approvalStatus) 
	{
		this.approvalStatus = approvalStatus;
	}

	public String getApprovalStatus() 
	{
		return approvalStatus;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}

}
